﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master"
    CodeBehind="ICCTeams.aspx.vb" Inherits="CricketForum.ICCTeams" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        <h1>
            List of International Cricket Council (ICC) members
        </h1>
    </p>

     <div class="RssFeed">
        RSS Feed
        <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/Pictures/General/Feed-icon.jpeg"
            ToolTip="RSS Feed" Width="20px" Height="20px" />
    </div>
   <p>
        <asp:GridView ID="gvPlayers" runat="server" AllowSorting="True" 
            AutoGenerateColumns="False" DataSourceID="CricketPlayersDataSource"
            Width="100%" PageSize="8" AllowPaging="True">
            <EmptyDataTemplate>
                No Data Found.
            </EmptyDataTemplate>
            <HeaderStyle CssClass="H1" />
            <Columns>
                <asp:BoundField DataField="ID" HeaderText="SL NO" SortExpression="ID" />
                <asp:TemplateField HeaderText="Nation" SortExpression="Nation">
                    <ItemTemplate>
                        <asp:Image ID="NationFlag" runat="server" ImageUrl='<%# Eval("NationFlag") %>' Width="40px"
                            Height="20px" ImageAlign="Middle" />
                        <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl='<%# "http://maps.google.co.uk/maps?q=" + Eval("Nation") %>'
                            Target="_blank">
                            <asp:Label ID="Label1" runat="server" Text='<%# Bind("Nation") %>'></asp:Label>
                        </asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:HyperLinkField DataTextField="GoverningBodyName" HeaderText="Governing Body"
                    SortExpression="GoverningBodyName" DataNavigateUrlFields="ID" DataNavigateUrlFormatString="GoverningBody.aspx?ID={0}" />
                <asp:BoundField DataField="CurrentODIRankings" HeaderText="ODI Rankings" SortExpression="CurrentODIRankings" />
                <asp:BoundField DataField="CurrentTestRankings" HeaderText="Test Rankings" SortExpression="CurrentTestRankings" />
                <asp:BoundField DataField="CurrentT20Rankings" HeaderText="T20 Rankings" SortExpression="CurrentT20Rankings" />
                <asp:ImageField DataImageUrlField="TeamLogo" HeaderText="Team Logo">
                    <ControlStyle Height="100px" Width="80px" />
                </asp:ImageField>
            </Columns>
        </asp:GridView>
        </p>
        <asp:SqlDataSource ID="CricketPlayersDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ConnStringWorldsCricket %>"
            ProviderName="<%$ ConnectionStrings:ConnStringWorldsCricket.ProviderName %>"
            
            
            SelectCommand="SELECT ID, Nation, GoverningBodyName, CurrentODIRankings, CurrentTestRankings, CurrentT20Rankings, TeamLogo, NationFlag FROM InternationalCricketTeams  order by InternationalCricketTeams.ID ">
        </asp:SqlDataSource>
       
    </div>
</asp:Content>
